import {Loading} from "element-ui";

let loading: any;
export const showLoading = (message: any) => {
    loading = Loading.service({
        lock: true,
        text: message ? message : '加载中...',
        background: 'rgba(0, 0, 0, 0.7)'
    })

};
export const closeLoading = () => {
    if (loading) {
        loading.close()
    }
};
